package net.jueb.springStudy.feign;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

//在注册中心中进行注册
@EnableEurekaClient
//启动服务发现的功能，开启了才能调用其它服务
@EnableDiscoveryClient
//启用feign客户端,Feign内部已经支持了断路器，所以不需要像Ribbon方式一样，在Spring Boot启动类上加额外注解EnableHystrix 
@EnableFeignClients
@SpringBootApplication
public class SpringFeignApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringFeignApplication.class, args);
	}
}
